package com.yqb.study.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.commons.lang3.StringUtils;

/*
 * 所有交易集中管理
 */
public class ValidatorUtil {

	private static final Pattern mobile_pattern = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");

	public static boolean isMobile(String src) {
		if (StringUtils.isEmpty(src)) {
			return false;
		}
		Matcher m = mobile_pattern.matcher(src);

		return m.matches();
	}

	// public static void main(String[] args) {
	// System.out.println(isMobile("18912341234"));
	// System.out.println(isMobile("1891234123"));
	// }
}
